Example: Sketch the graph of the function
\[ f(x) = \dfrac{x^2+x-42}{x^2-25} \]Solution When sketching a rational function, we need to identify the critical features of the graph:
- Vertical Asymptote(s)/Holes (Domain Restrictions)
- End Behavior
- Horizontal Intercepts
- Vertical Intercepts
The order is not mandatory, rather we need all of the above before we can be confident in sketching the graph. In general, I recommend factoring the numerator/denominator of the rational function as our first step (although we will use the un-factored form too!)
\[ \solve{ f(x)&=&\dfrac{x^2+x-42}{x^2-25}\\ f(x)&=&\dfrac{(x+7)(x-6)}{(x+5)(x-5)} } \]Now that the function is fully factored, it is easier to identify the zeros and domain restrictions, while the non-factored version of the equation is easier to identify the end behavior and vertical intercepts.
- Domain Restrictions: Based on the fact there are no common factors between the numerator and denominator, there are no holes in the graph and the domain restrictions there are must all be vertical asymptotes. Based on the factored denominator, the vertical asymptotes are \(x=-5\) and \(x=5\)
- End Behavior: Using the non-factored form, we divide the leading terms: \(\dfrac{x^2}{x^2} = 1\). The constant result means we have a horizontal asymptote at \(y=1\).
- Horizontal Intercepts: Using the factored form, we can see the zeros are at \(x= -7\) and \(x=6\).
- Vertical Intercept: Using either form (although non-factored is easier) by setting \(x=0\) we find the vertical intercept. \(y=\dfrac{0^2+0-42}{0^2-25}=\dfrac{{42}}{{25}}\)
Now that we have all the features, we put it together for to sketch the graph.
Features:
Features + Graph: